package DARCOShared.responses;

import java.io.Serializable;
import java.util.Vector;

public class GetPositionsOfNearbyUsersResponse implements Serializable,	ResponseBase {
	private static final long serialVersionUID = 1L;

	public boolean hasError;
	public String errorMessage;
	
	public Vector<Float> longitudes;
	public Vector<Float> latitudes;
	public Vector<String> emails;
	
	public GetPositionsOfNearbyUsersResponse(){
		hasError = false;
		longitudes = new Vector<Float>();
		latitudes = new Vector<Float>();
		emails = new Vector<String>();
	}
	
	public GetPositionsOfNearbyUsersResponse(String error){
		this.errorMessage = error;
		hasError = true;
	}
	
	@Override
	public ResponseType getResponseType() {
		return ResponseType.GetNearestOwners;
	}

}
